#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    int bian[3] = { 0 };
    int t = 0;

    while (scanf("%d %d %d", &bian[0], &bian[1], &bian[2]) == 3)
    {
        for (int i = 0; i < 2; i++)
        {
            for (int j = i + 1; j < 3; j++)
            {
                if (bian[i] < bian[j])
                {
                    t = bian[i];
                    bian[i] = bian[j];
                    bian[j] = t;
                }
            }
        }
        if (bian[0] < (bian[1] + bian[2]))
        {
            if (bian[0] == bian[1] && bian[1] == bian[2])
                printf("Equilateral triangle!\n");
            else if (bian[0] == bian[1] || bian[1] == bian[2])
                printf("Isosceles triangle!\n");
            else
                printf("Ordinary triangle!\n");
        }
        else {
            printf("Not a triangle!\n");
        }
    }
    return 0;
}